package com.akk.module.app.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class AppUserGradeAccessExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AppUserGradeAccessExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGradeAccessIdIsNull() {
            addCriterion("grade_access_id is null");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdIsNotNull() {
            addCriterion("grade_access_id is not null");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdEqualTo(String value) {
            addCriterion("grade_access_id =", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdNotEqualTo(String value) {
            addCriterion("grade_access_id <>", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdGreaterThan(String value) {
            addCriterion("grade_access_id >", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdGreaterThanOrEqualTo(String value) {
            addCriterion("grade_access_id >=", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdLessThan(String value) {
            addCriterion("grade_access_id <", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdLessThanOrEqualTo(String value) {
            addCriterion("grade_access_id <=", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdLike(String value) {
            addCriterion("grade_access_id like", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdNotLike(String value) {
            addCriterion("grade_access_id not like", value, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdIn(List<String> values) {
            addCriterion("grade_access_id in", values, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdNotIn(List<String> values) {
            addCriterion("grade_access_id not in", values, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdBetween(String value1, String value2) {
            addCriterion("grade_access_id between", value1, value2, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andGradeAccessIdNotBetween(String value1, String value2) {
            addCriterion("grade_access_id not between", value1, value2, "gradeAccessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdIsNull() {
            addCriterion("access_id is null");
            return (Criteria) this;
        }

        public Criteria andAccessIdIsNotNull() {
            addCriterion("access_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccessIdEqualTo(String value) {
            addCriterion("access_id =", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdNotEqualTo(String value) {
            addCriterion("access_id <>", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdGreaterThan(String value) {
            addCriterion("access_id >", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdGreaterThanOrEqualTo(String value) {
            addCriterion("access_id >=", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdLessThan(String value) {
            addCriterion("access_id <", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdLessThanOrEqualTo(String value) {
            addCriterion("access_id <=", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdLike(String value) {
            addCriterion("access_id like", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdNotLike(String value) {
            addCriterion("access_id not like", value, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdIn(List<String> values) {
            addCriterion("access_id in", values, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdNotIn(List<String> values) {
            addCriterion("access_id not in", values, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdBetween(String value1, String value2) {
            addCriterion("access_id between", value1, value2, "accessId");
            return (Criteria) this;
        }

        public Criteria andAccessIdNotBetween(String value1, String value2) {
            addCriterion("access_id not between", value1, value2, "accessId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdIsNull() {
            addCriterion("user_grade_id is null");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdIsNotNull() {
            addCriterion("user_grade_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdEqualTo(String value) {
            addCriterion("user_grade_id =", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdNotEqualTo(String value) {
            addCriterion("user_grade_id <>", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdGreaterThan(String value) {
            addCriterion("user_grade_id >", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_grade_id >=", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdLessThan(String value) {
            addCriterion("user_grade_id <", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdLessThanOrEqualTo(String value) {
            addCriterion("user_grade_id <=", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdLike(String value) {
            addCriterion("user_grade_id like", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdNotLike(String value) {
            addCriterion("user_grade_id not like", value, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdIn(List<String> values) {
            addCriterion("user_grade_id in", values, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdNotIn(List<String> values) {
            addCriterion("user_grade_id not in", values, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdBetween(String value1, String value2) {
            addCriterion("user_grade_id between", value1, value2, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andUserGradeIdNotBetween(String value1, String value2) {
            addCriterion("user_grade_id not between", value1, value2, "userGradeId");
            return (Criteria) this;
        }

        public Criteria andT1RateIsNull() {
            addCriterion("t1_rate is null");
            return (Criteria) this;
        }

        public Criteria andT1RateIsNotNull() {
            addCriterion("t1_rate is not null");
            return (Criteria) this;
        }

        public Criteria andT1RateEqualTo(Double value) {
            addCriterion("t1_rate =", value, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateNotEqualTo(Double value) {
            addCriterion("t1_rate <>", value, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateGreaterThan(Double value) {
            addCriterion("t1_rate >", value, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateGreaterThanOrEqualTo(Double value) {
            addCriterion("t1_rate >=", value, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateLessThan(Double value) {
            addCriterion("t1_rate <", value, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateLessThanOrEqualTo(Double value) {
            addCriterion("t1_rate <=", value, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateIn(List<Double> values) {
            addCriterion("t1_rate in", values, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateNotIn(List<Double> values) {
            addCriterion("t1_rate not in", values, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateBetween(Double value1, Double value2) {
            addCriterion("t1_rate between", value1, value2, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andT1RateNotBetween(Double value1, Double value2) {
            addCriterion("t1_rate not between", value1, value2, "t1Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateIsNull() {
            addCriterion("d0_rate is null");
            return (Criteria) this;
        }

        public Criteria andD0RateIsNotNull() {
            addCriterion("d0_rate is not null");
            return (Criteria) this;
        }

        public Criteria andD0RateEqualTo(Double value) {
            addCriterion("d0_rate =", value, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateNotEqualTo(Double value) {
            addCriterion("d0_rate <>", value, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateGreaterThan(Double value) {
            addCriterion("d0_rate >", value, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateGreaterThanOrEqualTo(Double value) {
            addCriterion("d0_rate >=", value, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateLessThan(Double value) {
            addCriterion("d0_rate <", value, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateLessThanOrEqualTo(Double value) {
            addCriterion("d0_rate <=", value, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateIn(List<Double> values) {
            addCriterion("d0_rate in", values, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateNotIn(List<Double> values) {
            addCriterion("d0_rate not in", values, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateBetween(Double value1, Double value2) {
            addCriterion("d0_rate between", value1, value2, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0RateNotBetween(Double value1, Double value2) {
            addCriterion("d0_rate not between", value1, value2, "d0Rate");
            return (Criteria) this;
        }

        public Criteria andD0StatusIsNull() {
            addCriterion("d0_status is null");
            return (Criteria) this;
        }

        public Criteria andD0StatusIsNotNull() {
            addCriterion("d0_status is not null");
            return (Criteria) this;
        }

        public Criteria andD0StatusEqualTo(Integer value) {
            addCriterion("d0_status =", value, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusNotEqualTo(Integer value) {
            addCriterion("d0_status <>", value, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusGreaterThan(Integer value) {
            addCriterion("d0_status >", value, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("d0_status >=", value, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusLessThan(Integer value) {
            addCriterion("d0_status <", value, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusLessThanOrEqualTo(Integer value) {
            addCriterion("d0_status <=", value, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusIn(List<Integer> values) {
            addCriterion("d0_status in", values, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusNotIn(List<Integer> values) {
            addCriterion("d0_status not in", values, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusBetween(Integer value1, Integer value2) {
            addCriterion("d0_status between", value1, value2, "d0Status");
            return (Criteria) this;
        }

        public Criteria andD0StatusNotBetween(Integer value1, Integer value2) {
            addCriterion("d0_status not between", value1, value2, "d0Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusIsNull() {
            addCriterion("t1_status is null");
            return (Criteria) this;
        }

        public Criteria andT1StatusIsNotNull() {
            addCriterion("t1_status is not null");
            return (Criteria) this;
        }

        public Criteria andT1StatusEqualTo(Integer value) {
            addCriterion("t1_status =", value, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusNotEqualTo(Integer value) {
            addCriterion("t1_status <>", value, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusGreaterThan(Integer value) {
            addCriterion("t1_status >", value, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("t1_status >=", value, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusLessThan(Integer value) {
            addCriterion("t1_status <", value, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusLessThanOrEqualTo(Integer value) {
            addCriterion("t1_status <=", value, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusIn(List<Integer> values) {
            addCriterion("t1_status in", values, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusNotIn(List<Integer> values) {
            addCriterion("t1_status not in", values, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusBetween(Integer value1, Integer value2) {
            addCriterion("t1_status between", value1, value2, "t1Status");
            return (Criteria) this;
        }

        public Criteria andT1StatusNotBetween(Integer value1, Integer value2) {
            addCriterion("t1_status not between", value1, value2, "t1Status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}